import javax.swing.*;

/**
 * Created by ospip on 2018/10/31.
 * Copyright (c) 2018 LLAP. All rights reserved.
 */
public class PanelClient extends JFrame {
    public PanelClient() {
        try {
            UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
        } catch (Exception e) {
            try {
                UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
            } catch (Exception exc) {
                System.out.println("Substance Raven Graphite failed to initialize");
            }
        }

        this.setSize(400, 80);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        PanelDirector director = new PanelDirector(new CNPanel());
        this.add(director.build());
    }

    public static void main(String[] args) {
        new PanelClient().setVisible(true);
    }
}
